package com.cg.controller;

import com.cg.utils.ResourceUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class DemoController {

    @GetMapping("/list1")
    public String list1(){
        String string = ResourceUtils.readFileContent("file/test.txt");
        return string;
    }

    @GetMapping("/list2")
    public String list2(){
        String string = ResourceUtils.readFileContent("file/user.json");
        return string;
    }


}
